<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>权限分配</title>
<link href="<?php echo base_url() ?>css/base.css" type="text/css" rel="stylesheet" />
<link href="<?php echo base_url() ?>css/common.css" type="text/css" rel="stylesheet" />
<link href="<?php echo base_url() ?>css/pages.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="<?php echo base_url() ?>js/jquery-1.4.4.min.js"></script>
<script type="text/javascript" src="<?php echo base_url() ?>js/Clock.js"></script>
<!--[if IE 6]><script type="text/javascript" src="<?php echo base_url() ?>js/pngfix.js"></script><![endif]-->
<script type="text/javascript" src="<?php echo base_url() ?>js/menu.js"></script>
</head>

<body>
<div class="oaindex">
	<?php include 'system_header.php' ?>
    <div class="clearfix">
        <?php include 'system_left.php' ?>
		
		<!-- -----------------------------------编辑区---------------------------------- -->
		
        <div class="right_box"><form name="form1" method="post" action="/index.php/depart/power/<?php echo $id ?>/do">
            <div class="the_current">
				<span></span>
				<p>当前位置：首页&nbsp;&nbsp;>>&nbsp;&nbsp;权限分配</p>
            </div>
			<div class="ou_butpos">
            	
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td class="table_left">部门名称：</td>
                        <td>
							<input type="text" name="name" value="<?php echo $name ?>" readonly="" />
						</td>
                      </tr>
                      <tr>
                        <td class="table_left">部门描述：</td>
                       <td><textarea name="notes" readonly=""><?php echo $notes ?></textarea></td>
                      </tr>
					  <tr>
					  	<td>&nbsp;</td>
						<td height="40">================ 此部门的详细权限设置 ================</td>
					  </tr>
					  <tr>
					  	<td colspan="2" style="padding-left:20px">一、此部门的默认权限</td>
					  </tr>
					  <tr>
					  	<td colspan="2" class="state"  height="40" style="padding-left:20px; color:#666666">
							<label><input type="checkbox" name="" checked="checked" disabled="disabled" /><span>浏览主页</span></label>
							<input type="checkbox" name="nodeid[]" value="16" checked="checked" style="display:none" />
						</td>
					  </tr>
					  <tr>
					  	<td colspan="2" style="padding-left:20px">二、此部门在【部门管理】选项里的权限</td>
					  </tr>
					  <tr>
					  	<td colspan="2" class="state"  height="40" style="padding-left:20px; color:#666666">
							<?php foreach($plist1 as $p1){ ?>
							<label><input type="checkbox" name="nodeid[]" value="<?php echo $p1['id'] ?>" <?php echo in_array($p1['id'], $havepower) ? 'checked="checked"' : '' ?> /><span><?php echo $p1['notes'] ?></span></label>
							<?php } ?>
						</td>
					  </tr>
					  <tr>
					  	<td colspan="2" style="padding-left:20px">三、此部门在【用户管理】选项里的权限</td>
					  </tr>
					  <tr>
					  	<td colspan="2" class="state" height="40" style="padding-left:20px; color:#666666">
							<?php foreach($plist2 as $p2){ ?>
							<label><input type="checkbox" name="nodeid[]" value="<?php echo $p2['id'] ?>" <?php echo in_array($p2['id'], $havepower) ? 'checked="checked"' : '' ?> /><span><?php echo $p2['notes'] ?></span></label>
							<?php } ?>
						</td>
					  </tr>
					  <tr>
					  	<td colspan="2" style="padding-left:20px">四、此部门在【公文管理】选项里的权限</td>
					  </tr>
					  <tr>
					  	<td colspan="2" class="state" height="40" style="padding-left:20px; color:#666666">
							<?php foreach($plist3 as $p3){ ?>
							<label><input type="checkbox" name="nodeid[]" value="<?php echo $p3['id'] ?>" <?php echo in_array($p3['id'], $havepower) ? 'checked="checked"' : '' ?> /><span><?php echo $p3['notes'] ?></span></label>
							<?php } ?>
						</td>
					  </tr>
                      <tr>
                        <td></td>
                        <td class="function_button"><input name="submit" type="submit" value="提交" /><input name="reset" type="reset" value="取消" /><a href="#" onclick="javascript:window.history.back()">返回</a></td>
                      </tr>
                    </table>
               

			</div>
           
            </form>
        </div>
		
		<!-- -----------------------------------编辑区---------------------------------- -->
		
    </div>
    <?php include 'system_footer.php' ?>
</div>

</body>
</html>
